#ifndef __CANFD_RW_H__
#define __CANFD_RW_H__
#include "canfd_test.h"

/* 打开 CANFD 设备 */
int open_canfd(void *parent, const char *name, struct canfd_dev_t *dev, uint8_t index);
int set_canfd_baud_rate(int fd, struct canfd_bittiming *arbitration_baud, struct canfd_bittiming *data_baud);
int start_canfd(int fd);
void *send_canfd_thread(void *arg);
void *recv_canfd_thread(void *arg);

#endif /* __CANFD_RW_H__ */
